package com.itheima.demo1;

import java.util.Scanner;

public class Jianfeijihua {
    public static void main(String[] args){

        lo:while (true){
            System.out.println("请输入您要查看的星期数");
            System.out.println("如无需继续查看，请输入0退出程序");

            Scanner sc = new Scanner(System.in);
            int week = sc.nextInt();

            switch (week){
                case 0:
                    System.out.println("感谢您的使用！1");
                    break lo;
                case 1:
                    System.out.println("跑步");
                    break;
                case 2:
                    System.out.println("游泳");
                    break;
                case 3:
                    System.out.println("慢走");
                    break;
                case 4:
                    System.out.println("动感单车");
                    break;
                case 5:
                    System.out.println("拳击");
                    break;
                case 6:
                    System.out.println("爬山");
                    break;
                case 7:
                    System.out.println("好好干饭");
                    break;
                default:
                    System.out.println("输入有误");
                    break;
            }
        }
    }
}
